from django.conf.urls import url
from rest_framework import routers

from . import views

urlpatterns = [
    url(r'^areas/$', views.AreasView.as_view()),
    url(r'^areas/(?P<pk>\d+)/$', views.AreasView.as_view()),
    url(r'^addresses/$', views.AddressViewSet.as_view()),
    # url(r'^addresses/(?P<pk>\d+)/$', views.AddressViewSet.as_view()),
]
router = routers.DefaultRouter()
router.register(r'addresses', views.AddressViewSet, base_name='addresses')